package com.repast.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.repast.common.ServerResponse;
import com.repast.service.IRestaurantInfoService;

@Controller
@RequestMapping("/rstInfo/")
public class RestaurantInfoController {
	
	@Autowired
	private IRestaurantInfoService rsInfoService;
	
	//查询餐厅营业时间
	@RequestMapping("time.do")
	@ResponseBody
	public ServerResponse selectRsTime(){
		return rsInfoService.selectRsTime();
	}
	
	//点击我要点餐按钮,查看今天是否是营业状态,如果营业正常,今天不营业的话给出提示,今天打烊
	@RequestMapping("busness.do")
	@ResponseBody
	public ServerResponse judgeBusness(){
		return rsInfoService.judgeBusness();
	}
	
}
